<div class="admin">
    <form method="post" name="myform" id="myform" action="">
        <div class="tab panel dux-tab admin-panel">
            <div class="panel-head">
                <div class="tab-head">
                    <strong>添加虚拟商品</strong>
                    <ul class="tab-nav">
                        <li class="active"><a href="#tab-1">基本信息</a></li>
                        <li class=""><a href="#tab-2">购买须知</a></li>
                        <li class=""><a href="#tab-3">本单详情</a></li>
                        <li class=""><a href="#tab-4">商铺环境</a></li>
                    </ul>
                </div>
            </div>
            <div class="tab-body">
                <div class="tab-panel active" id="tab-1">
                    <table class="table table-hover">
                        <tr>
                            <td width='160px'><span class="c-red">*</span>类别：</td>
                            <td width='*'>
                                <input type="hidden" id="cate_id" name="cate_id" value="0" class="mls_id" />
                                <input type="hidden" id="cate_name" name="cate_name" value="" class="mls_names" />
                                <select class="input input_small">
                                    <option value="0">-请选择-</option>
                                    <foreach item="v" name="cate">
                                        <option value="{$v['class_id']}">{$v['class_name']}</option>
                                    </foreach>
                                </select>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>
                        <tr>
                            <td width='160px'><span class="c-red">*</span>产品名称：</td>
                            <td width='*'>
                                <input type="text" class="input input_big" value="" datatype="*" placeholder="" id="" name="vr_title" />
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>虚拟图片：</td>
                            <td>
                                <div class="goodspic-uplaod">
                                <!-- 图片上传按钮 -->
                                <input class="fileupload" type="file" name="image" data-name="vr_thumb" data-num="1" />
                                <!-- 图片展示模块 -->
                                <div class="files"></div>
                                <div style="clear:both;"></div>
                                <!-- 图片上传进度条模块 -->
                                <div class="up_progress"><div class="progress-bar"></div></div>
                                </div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>轮播图片：</td>
                            <td>
                                <div class="goodspic-uplaod">
                                <!-- 图片上传按钮 -->
                                <input class="fileupload" type="file" name="image" data-name="vr_pics[]" data-num="5" />
                                <!-- 图片展示模块 -->
                                <div class="files"></div>
                                <div style="clear:both;"></div>
                                <!-- 图片上传进度条模块 -->
                                <div class="up_progress"><div class="progress-bar"></div></div>
                                </div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>有效期：</td>
                            <td>
                                <input type="text" class="input input_small" readonly="readonly" datatype="*" value="" id="query_start_time" name="vr_endtime">
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>门店价：</td>
                            <td>
                                <input name="vr_price" class="inputL input_smallL" datatype="*" type="text" /><em class="add-on">元</em>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>组团人数：</td>
                            <td>
                                <input name="vr_limit" class="inputL input_smallL" datatype="*" type="text" /><em class="add-on">元</em>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>团购价：</td>
                            <td>
                                <input name="vr_money" class="inputL input_smallL" datatype="*" type="text" /><em class="add-on">元</em>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>限制人数：</td>
                            <td>
                                <select name="vr_num" class="inputL input_small">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                </select>
                                <em class="add-on">人</em></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>简短描述：</td>
                            <td>
                                <textarea class="input input_big" name="vr_jianjie" id="voucher_desc" cols="62" rows="3"></textarea>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>是否上架：</td>
                            <td>
                                <div class="field">
                                    <div class="button-group button-group-small radio">
                                        <label class="button"><input name="vr_sale" value="1" type="radio"><span class="icon icon-check"></span> 上架</label>
                                        <label class="button active"><input name="vr_sale" checked="checked" value="0" type="radio"><span class="icon icon-times"></span> 下架</label>
                                    </div>
                                </div>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="c-red">*</span>服务承诺：</td>
                            <td>
                                <div class="button-group border-main checkbox">
                                    <label class="button active icon-check"><input name="vr_service[]" value="1" type="checkbox" checked="checked">随时退</label>
                                    <label class="button active icon-check"><input name="vr_service[]" value="2" type="checkbox" checked="checked">过期退</label>
                                    <label class="button active icon-check"><input name="vr_service[]" value="3" type="checkbox" checked="checked">真实评价</label>
                                    <label class="button active icon-check"><input name="vr_service[]" value="4" type="checkbox" checked="checked">免费上网</label>
                                    <label class="button"><input name="vr_service[]" value="5" type="checkbox">免费停车</label>
                                </div>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>

                    </table>
                </div>

                <div class="tab-panel" id="tab-2">
                    <table class="table table-hover">

                        <tr>
                            <td width='160px'><span class="c-red">*</span>使用时间：</td>
                            <td width='*'>
                                <input type="text" class="input input_big" value="" datatype="*" placeholder="" id="" name="vr_usetime" />
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>

                        <tr>
                            <td><span class="c-red">*</span>使用限制：</td>
                            <td>
                                <div class="button-group border-main checkbox">
                                    <label class="button active icon-check"><input name="vr_uselimit[]" value="1" type="checkbox" checked="checked">周末</label>
                                    <label class="button active icon-check"><input name="vr_uselimit[]" value="2" type="checkbox" checked="checked">法定假日</label>
                                </div>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>

                        <tr>
                            <td width='160px'><span class="c-red">*</span>预约提醒：</td>
                            <td width='*'>
                                <input type="text" class="input input_big" value="" datatype="*" placeholder="" id="" name="vr_bespeak" />
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>

                        <tr>
                            <td width='160px'><span class="c-red">*</span>其他优惠：</td>
                            <td width='*'>
                                <input type="text" class="input input_big" value="" datatype="*" placeholder="" id="" name="vr_other" />
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>

                        <tr>
                            <td width='160px'><span class="c-red">*</span>使用规则：</td>
                            <td width='*'>
                                <textarea class="input input_big" name="vr_rule" id="voucher_desc" cols="62" rows="3"></textarea>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td width='*'></td>
                        </tr>
                    </table>
                </div>

                <div class="tab-panel" id="tab-3">
                    <table class="table table-hover">
                        <tr>
                            <td width='160px'><span class="c-red">*</span>商品详细描述：</td>
                            <td>
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.config.js"></script>
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.all.min.js"></script>
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
                                <textarea id="editors" type="text/plain" style="width:80%;height:200px;" name="vr_desc" ></textarea>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </div>
                <div class="tab-panel" id="tab-4">
                    <table class="table table-hover">
                        <tr>
                            <td width='160px'><span class="c-red">*</span>环境介绍：</td>
                            <td>
                                <textarea id="editor" type="text/plain" style="width:80%;height:200px;" name="vr_environ" ></textarea>
                                <script>
                                    var ue = UE.getEditor('editors');
                                    var ue = UE.getEditor('editor');
                                    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                                    UE.Editor.prototype.getActionUrl = function (action) {
                                        if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                                            return '{:STORE_URL}/Store/ueditor';
                                        } else {
                                            return this._bkGetActionUrl.call(this, action);
                                        }
                                    }
                                </script>
                                <div class="label Validform_checktip"></div>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="panel-foot text-center">
                <div class="form-button">
                    <input class="button bg-main" type="submit" value="确认保存">
                    <button class="button bg" type="reset">取消</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__JS__/jquery.uploads.js"></script>
<script type="text/javascript">
    $("#myform").Validform({
        tiptype: 3,
        showAllError: true,
    });

    $('#myform').layer({
    });

    $('#query_start_time').duxTime({
        timepicker: false,
        minDate: 0,
        format: "Y-m-d"
    });
</script>